package com.joysuch.wwyt.bp.repository;

import com.joysuch.wwyt.bp.entity.investigate.BpInvestigateType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

/**
 * @Author ZhangDong
 * @Date 2020/3/25 16:24
 */
public interface BpInvestigateTypeRepository extends JpaRepository<BpInvestigateType, Long>, JpaSpecificationExecutor<BpInvestigateType> {


    int countByCheckType(String checkType);


    BpInvestigateType findFirstByCheckType(String checkType);
}
